home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga CD-ROM Collection
/
Amiga CD-ROM Collection - Auge 4000 and Cactus and Demo Util.iso
/
auge4000
/
46
/
include
/
assert.h
next >
Wrap
C/C++ Source or Header
|
1990-06-20
|
441b
|
27 lines
/*
* ASSERT.H
*
* relatively optimized, takes advantage of GNU-cpp __BASE_FILE__ macro
* allowing us to store the filename string once in a static decl.
*/
#ifndef _ASSERT_H
#define _ASSERT_H
static char *__BaseFile = __BASE_FILE__;
extern void __FailedAssert(char *, int);
#ifndef assert
#ifdef NDEBUG
#define assert(ignore)
#else
#define assert(exp) if (exp) __FailedAssert( __BaseFile, __LINE__);
#endif
#endif
#endif